//
//  MajorTreeViewTableViewCell.m
//  GKZYAid
//
//  Created by tony on 16/3/4.
//  Copyright © 2016年 GKZYAid. All rights reserved.
//

#import "MajorTreeViewTableViewCell.h"
#import "MyDefine.h"

@implementation MajorTreeViewTableViewCell

-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        [self addViews];
    }
    return self;
}

-(void)addViews{
    self.image = [[UIImageView alloc]init];
    self.image.image = [UIImage imageNamed:@"down"];
    [self.contentView addSubview:self.image];
    
    self.titleLabel = [[UILabel alloc]init];
    [self.contentView addSubview:self.titleLabel];
}


-(void)layoutSubviews{

    [super layoutSubviews];
    self.image.frame = CGRectMake(20, 10, 20, 20);
    self.titleLabel.frame = CGRectMake(40, 0, self.contentView.frame.size.width - 40, 40);

}


@end
